<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>dancoder</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
	name="viewport" />
<meta name="generator" content="MetInfo"
	data-variable="http://show.metinfo.cn/muban/res013/323/|cn||||res013" />
<link href="../favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="../css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="../css/info.css" />
<link rel="stylesheet" type="text/css" href="../build/css/messenger.css" />
<link rel="stylesheet" type="text/css"
	href="../build/css/messenger-theme-future.css" />
</head>
<style>
.met-member {
	background-color:;
}

.login_index {
	background-color:;
}

#uppw-email {
	width: 260px;
}

#code {
	width: 394px;
}

#btn {
	width: 129px;
	height: 41px;
	margin-left: 4px;
	margin-top: 1px;
}
</style>
<body>
	<div class="container met-head">

		<div class="row">
			<div class="col-xs-6 col-sm-6 logo">
				<ul class="list-none">
					<li><a href="index.html" class="met-logo"> <img
							src="../images/logo.png" /></a></li>
					<li>修改密码</li>
				</ul>
			</div>
			<div class="col-xs-6 col-sm-6 user-info">
				<ol class="breadcrumb pull-right">
					<li><a href="login.html" title="返回首页">返回登录</a></li>
				</ol>
			</div>
		</div>
	</div>
	<div class="register_index met-member">
		<div class="container">
			<form class="form-register met-form" method="post" action="">

				<div class="form-group">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-user"></i></span>
						<input type="text" id="uppw-username" class="form-control"
							placeholder="会员名" />
					</div>
				</div>

				<!-- <div class="form-group">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-unlock-alt"></i></span>
						<input type="password" id="password" required
							class="form-control" placeholder="旧密码" data-bv-notempty="true">
					</div>
				</div> -->

				<div class="form-group">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-unlock-alt"></i></span>
						<input type="password" id="uppw-newpw" required
							class="form-control" placeholder="新密码" data-bv-notempty="true">
					</div>
				</div>

				<div class="form-group">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-unlock-alt"></i></span>
						<input type="password" id="uppw-confirmpassword"
							placeholder="重复密码" class="form-control">
					</div>
				</div>

				<div class="form-group">
					<div class="input-group">
						<span class="input-group-addon"><i class="fa fa-email-alt"></i></span>
						<input type="email" id="uppw-email" placeholder="邮箱"
							class="form-control"> <input type="button" id="btn"
							onclick="sendEmail();" class="btn btn-primary" value="获取验证码" />
					</div>
				</div>

				<!-- <a class="code" required> <img alt="" src="user/image"
						style="height: 30px;" id="yanzhengimg">
					</a> 
					<a class="yanzheng" href="javascript:;"
						onclick="document.getElementById('yanzhengimg').src='user/image.do'+Math.random();">看不清，换一张</a>
			 -->

				<div class="row login_code">
					<div class="col-xs-8">
						<div class="form-group">
							<div class="input-group">
								<span class="input-group-addon"><i class="fa fa-shield"></i></span>
								<input type="text" id="code" class="form-control"
									placeholder="验证码">
							</div>
						</div>
					</div>
					<!-- <div class="col-xs-4 login_code_img">
						<img src="/dancoder/user/image"
							style="height: 40px; margin-top: 2px; margin-left: 36px;"
							id="imgcode" href="javascript:;" class="yanzheng"
							title="看不清？点击更换验证码" onclick="document.getElementById('imgcode').src='/dancoder/user/image.do'+Math.random();"
							align="absmiddle">
					</div> -->
				</div>
				<input type="button" class="btn btn-lg btn-primary btn-block"
					onclick=" updatepwd();" value="提交" />
			</form>
		</div>
	</div>
	<footer class="container met-footer">
		<p>
			dancoder 版权所有 © 2017 <img alt=""
				style="width: 25px; padding-bottom: 9px;" src="../images/gh.png">
			陕ICP备17013266号
		</p>
	</footer>
	<script src="../js/jquery-1.11.1.min.js"></script>
	<script src="../js/seajs.js"></script>
	<script src="../productJS/user.js"></script>
	<script src="../build/js/messenger.min.js"></script>
	<script>
		var wait = 60;
		function time(o) {
			if (wait == 0) {
				o.removeAttribute("disabled");
				o.value = "获取验证码";
				wait = 60;
			} else {
				o.setAttribute("disabled", true);
				o.value = wait + "秒后重新发送";
				wait--;
				setTimeout(function() {
					time(o)
				}, 1000)
			}
		}
		document.getElementById("btn").onclick = function() {
			var result = sendEmail();
			if (result) {
				time(this);
			}else{
				
			}
		}
	</script>

</body>
</html>